<?php
namespace app\admin\controller;
use app\common\model\Menu as MenuModel;

class Menu extends Base
{
    public function __construct () {
        parent::__construct();
    }

    /**
     * @return void
     * 获取所有角色
     */
    public function getAllMenu()
    {
        $list = MenuModel::getColumn([],'*','pid asc,id asc');
        $data = $this->create_tree_list(0,$list);

        return returnJson(0, '', $data);
    }


    private function metaFormat()
    {

    }


}
